package com.king.modules.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.king.framework.base.service.impl.YyBaseServiceImpl;
import com.king.modules.system.domain.SysRoleMenuEntity;
import com.king.modules.system.mapper.SysRoleMenuMapper;
import com.king.modules.system.service.SysRoleMenuService;

@Service
public class SysRoleMenuServiceImpl extends YyBaseServiceImpl<SysRoleMenuMapper, SysRoleMenuEntity, Long> implements SysRoleMenuService{
	

	@Autowired
	private SysRoleMenuMapper roleMenuMapper;
	

	@Override
	public int deleteRoleMenuByRoleId(Long roleId) {
		return roleMenuMapper.deleteRoleMenuByRoleId(roleId);
	}

	@Override
	public int deleteRoleMenuByRoleIdAndMenuIds(Long roleId, Long[] menuIds) {
		return roleMenuMapper.deleteRoleMenuByRoleIdAndMenuIds(roleId, menuIds);
	}

	@Override
	public int deleteRoleMenuByRoleIds(Long[] ids) {
		return roleMenuMapper.deleteRoleMenuByRoleIds(ids);
	}


	@Override
	public int checkMenuExistRole(Long menuId) {
		return roleMenuMapper.checkMenuExistRole(menuId);
	}

	@Override
	public void deleteByGroupidMenuids(Long groupid, List<Long> menuIds) {
		roleMenuMapper.deleteByGroupidMenuids(groupid, menuIds);
	}



}
